function main() {
    var formPartEle = this.$$("form_part_5mdjhq");
    var self = this; // 重置作用域
    var formEle = formPartEle.$$getRenderElement().$$getFormValue();
    let formValue = formEle["root_93rbdw"]

    if (formPartEle) {
        formPartEle.$$getRenderElement().onSave().then((res) => {
            if (res && res.result) {
                let deductScore = '';
                // 获取当前摊主分数
                //law_stall_holder_base
                let holderId = formValue.widget_list_picker_a3wb4y;
                let selectSql = `ENTITY_SELECT_ONE('ds_tbl:t_de8aa08a73cf44a1b458dee1519542b8',credit_score,QUERY_EQ('holder_id',${holderId}))`
                api.EXEC_FORMULA(selectSql).then((res) => {
                    deductScore = res.result;
                    // 计算扣分
                    deductScore = deductScore === null ? 0 : parseInt(deductScore);

                    // if (deductScore === 0) {
                    //     self.$route.query.refresh = "1";
                    //     self.$router.back();
                    //     return;
                    // }

                    // 当前分值
                    let dbScore = Number(formValue.number_input_g3h0gq)

                    let updateScore = dbScore + deductScore;

                    if (updateScore > 100) {
                        updateScore = 100;
                    }

                    if (updateScore < 0) {
                        updateScore = 0;
                    }

                    // 计算后分值：

                    let litigantId = parseInt(formValue.widget_list_picker_368mjz)
                    api.EXEC_FORMULA("UPDATE('ds_tbl:t_de8aa08a73cf44a1b458dee1519542b8', QUERY_EQ('holder_id', " + holderId + "), '', ['credit_score'," + updateScore + ",'update_time',NOW() ])").then((res) => {
                        // then() 为调用成功的回调
                        console.log("res", res);
                        // self.$route.query.refresh = "1";
                        // self.$router.back();
                    }).catch(err => {
                        self.$message.error(err.message); // 显示错误提示信息
                    });
                }).catch(err => {
                    self.$message.error(err.message); // 显示错误提示信息
                });


            }
        });
    }
}
